import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)

const routes = [
 
  {
    path: '/all',
    component: () => import('../views/all.vue'),
    children:[
      {
        path: '/all/seipers',
        component: () => import('../views/all/seipers'),
      },
      {
        path: '/all/order',
        component: () => import('../views/all/order'),
      },
      {
        path: '/all/shoping',
        component: () => import('../views/all/shoping'),
      },
      {
        path: '/all/complie',
        component: () => import('../views/all/complie'),
      },
      {
        path: '/all/dateil',
        component: () => import('../views/all/dateil'),
      },
      {
        path: '/all/mod',
        component: () => import('../views/all/mod'),
      },
      {
        path: '/all',
        redirect:"/all/seipers"
      },
    ]
  },
  {
    path: '/login',
    component: () => import('../views/login.vue')
  },
  {
    path:"/",
    redirect:"/all"
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
